﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using UnityEngine;

namespace Assets
{
    public sealed class MainForm : Form
    {
        public MainForm()
        {
            BackColor = Color.FromArgb(239, 235, 233);
            MinimumSize = new Size(320, 240);
            Text = "Unity-WinForms";
            Size = new Size(900, 566);
            SizeGripStyle = SizeGripStyle.Show;

            Button btnOk = new Button();
            btnOk.SetBounds(560, 408, 120, 50);
            btnOk.Name = "OK";
            btnOk.Text = "OK";

            Controls.Add(btnOk);

            Button btnOneScreen = new Button();
            btnOneScreen.SetBounds(80, 167, 188, 124);
            btnOneScreen.Text = "One";
            btnOneScreen.Font = new Font("Arial", 24);
            // btnOneScrren.Image = new Bitmap(188, 124);
            Controls.Add(btnOneScreen);

            Button btnTwoScreen = new Button();
            btnTwoScreen.SetBounds(300, 167, 188, 124);
            btnTwoScreen.Text = "Two";
            btnTwoScreen.Font = new Font("Arial", 24);
            Controls.Add(btnTwoScreen);

            Button btnThreeScreen = new Button();
            btnThreeScreen.SetBounds(80, 335, 188, 124);
            btnThreeScreen.Text = "Three";
            btnThreeScreen.Font = new Font("Arial", 24);
            Controls.Add((Button)btnThreeScreen);

            Button btnFourScreen = new Button();
            btnFourScreen.SetBounds(300, 355, 188, 124);
            btnFourScreen.Text = "Four";
            btnFourScreen.Font = new Font("Arial", 24);
            Controls.Add(btnFourScreen);

            TrackBar volumeTrackBar = new TrackBar();
            volumeTrackBar.SetBounds(560, 169, 260, 24);
            volumeTrackBar.Value = 10;
            volumeTrackBar.Minimum = 0;
            volumeTrackBar.Maximum = 100;
            Controls.Add(volumeTrackBar);
        }
    }
}
